package com.ruoyi.app.service;

import com.ruoyi.app.domain.AppTeamLike;
import com.ruoyi.app.domain.vo.AppDynamicLikeVo;
import com.ruoyi.app.domain.vo.AppTeamLikeVo;
import com.ruoyi.app.domain.bo.AppTeamLikeBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * APP动态评论商品点赞Service接口
 *
 * @author heike
 * @date 2023-08-18
 */
public interface IAppTeamLikeService {

    /**
     * 查询APP动态评论商品点赞
     */
    AppTeamLikeVo queryById(Long id);

    /**
     * 根据记录ID，用户ID，类型查询点赞信息
     *
     * @param did  任务或评论ID
     * @param uid  用户ID
     * @param type 类型
     * @return
     */
    AppTeamLikeVo queryByTeamIdAndUserId(Long did, Long uid, String type);

    /**
     * 查询APP动态评论商品点赞列表
     */
    TableDataInfo<AppTeamLikeVo> queryPageList(AppTeamLikeBo bo, PageQuery pageQuery);

    /**
     * 查询APP动态评论商品点赞列表
     */
    List<AppTeamLikeVo> queryList(AppTeamLikeBo bo);

    /**
     * 新增APP动态评论商品点赞
     */
    Boolean insertByBo(AppTeamLikeBo bo);

    /**
     * 修改APP动态评论商品点赞
     */
    Boolean updateByBo(AppTeamLikeBo bo);

    /**
     * 校验并批量删除APP动态评论商品点赞信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    int delect(Long id);

    List<AppTeamLikeVo> queryByLike(Long id, String code);

    Boolean queryByUser(Long id, Long userID, String code);
}
